import cv2
image=cv2.imread('build.png')
cv2.imshow('Input',image)
G1=cv2.pyrDown(image)
G2=cv2.pyrDown(G1)
L0=cv2.subtract(image,cv2.pyrUp(G1))
L1=cv2.subtract(G1,cv2.pyrUp(G2))
cv2.imshow('Lap_image0',L0)
cv2.imshow('Lap_image1',L1)
G00=L0+cv2.pyrUp(G1)
cv2.imshow('Restore',G00)
cv2.waitKey()
cv2.destroyAllWindows()